package com.darksider.darkotlin.net.module

import dagger.Module
import dagger.Provides
import retrofit2.CallAdapter
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import javax.inject.Singleton

/**
 * User: yaodong(1126220529@qq.com)
 * Date: 2017-05-26
 * Time: 12:26
 * Description:rxjava2adapter在Retrofit中的参数以使用Flowable<Demo>来接收参数
 * Update:
 */
@Module
class Rx2AdapterModule {
    @Singleton @Provides fun rx2adapter(): CallAdapter.Factory = RxJava2CallAdapterFactory.create()
}